package com.yangzc.lion.common.dao;

import java.util.HashMap;
import java.util.Map;

/**
 * HQL包装器<br>
 * 
 */
public class HQLWrapper {

	public HQLWrapper() {
		super();
	}

	public HQLWrapper(String hql) {
		super();
		this.hql = hql;
	}

	public HQLWrapper(String hql, Map<String, Object> parameterMap) {
		super();
		this.hql = hql;
		this.parameterMap = parameterMap;
	}

	/**
	 * hql语句或片段
	 */
	public String hql = null;

	public String getHql() {
		return hql;
	}

	public void setHql(String hql) {
		this.hql = hql;
	}

	/**
	 * hql预编译参数
	 */
	private Map<String, Object> parameterMap = new HashMap<String, Object>();

	public Map<String, Object> getParameterMap() {
		return parameterMap;
	}

	public void setParameterList(Map<String, Object> parameterList) {
		this.parameterMap = parameterList;
	}

	public void setParameter(String key, Object value) {
		parameterMap.put(key, value);
	}

}
